package com.tedu.udm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tedu.udm.pojo.entity.Permission;
import com.tedu.udm.pojo.entity.Team;
import com.tedu.udm.pojo.vo.TeamListItemVO;
import com.tedu.udm.pojo.vo.TeamStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository   //告诉容器你是持久层的 @Repository是spring提供的注释，能够将该类注册成Bean
public interface TeamMapper extends BaseMapper<Team> {
    List<TeamListItemVO> selectByClassId(Long classId);
    TeamStandardVO selectByClassIdAndTeamName(Long classId, String teamName);
    TeamStandardVO selectByClassIdAndTeamNameAndTeamId(Long classId,String teamName,Long teamId);
}
